﻿using System;
using System.Web.UI.HtmlControls;


namespace EvaluationSystem
{
    public partial class SiteEnterpriseMaster : System.Web.UI.MasterPage
    {
        public HtmlControl li1 = null;
        public HtmlControl li2 = null;
        public HtmlControl li3 = null;
        public HtmlControl li4 = null;

        public HtmlControl b_hmenu1 = null;
        public HtmlControl b_hmenu2 = null;
        public HtmlControl b_hmenu3 = null;
        public HtmlControl b_hmenu4 = null;

        public HtmlControl s_menu1_1 = null;
        public HtmlControl s_menu1_2 = null;
        public HtmlControl s_menu1_3 = null;
        public HtmlControl s_menu1_4 = null;

        public HtmlControl s_menu2_1 = null;
        public HtmlControl s_menu2_2 = null;
        public HtmlControl s_menu2_3 = null;
        public HtmlControl s_menu2_4 = null;

        public HtmlControl s_menu3_1 = null;

        public HtmlControl s_menu4_1 = null;
        public HtmlControl s_menu4_2 = null;
        public HtmlControl s_menu4_3 = null;

        public void InitMenu()
        {
            li1 = (HtmlControl)this.menu1;
            li2 = (HtmlControl)this.menu2;
            li3 = (HtmlControl)this.menu3;
            li4 = (HtmlControl)this.menu4;

            b_hmenu1 = (HtmlControl)this.con_menu_1;
            b_hmenu2 = (HtmlControl)this.con_menu_2;
            b_hmenu3 = (HtmlControl)this.con_menu_3;
            b_hmenu4 = (HtmlControl)this.con_menu_4;

            s_menu1_1 = (HtmlControl)this.menu1_1;
            s_menu1_2 = (HtmlControl)this.menu1_2;
            s_menu1_3 = (HtmlControl)this.menu1_3;
            s_menu1_4 = (HtmlControl)this.menu1_4;

            s_menu2_1 = (HtmlControl)this.menu2_1;
            s_menu2_2 = (HtmlControl)this.menu2_2;
            s_menu2_3 = (HtmlControl)this.menu2_3;
            s_menu2_4 = (HtmlControl)this.menu2_4;

            s_menu3_1 = (HtmlControl)this.menu3_1;

            s_menu4_1 = (HtmlControl)this.menu4_1;
            s_menu4_2 = (HtmlControl)this.menu4_2;
            s_menu4_3 = (HtmlControl)this.menu4_3;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["userfullName"] != null)
            {
                lblUserName.Text = "欢迎您,"+Session["userfullName"].ToString();
            }          
        }
    }
}
